package day05;

/*
 * Author: JacksonCoder
 * FileName: KeyWordDemo
 * Version: 1.0.0
 * Date: 2025/4/12
 */
class Man{
    String name;

    public Man(String name){
        this.name = name; // 指当前对象的 name 字段
    }

    public void say(){
        System.out.println("Man say method");
    }

}

class Jackson extends Man{

    public Jackson(String name) {
        super(name);
    }

    void speak(){
        super.say();
        System.out.println("Brak");
    }

}


public class KeyWordDemo {

    public static void main(String[] args) {
        Jackson j = new Jackson("Jackson");
        j.speak();
    }

}
